package org.bing.engine.controller.helper;

import org.bing.engine.core.domain.ContainerInstance;

public class UrlBuilder {

    public static String build(ContainerInstance instance, String cmd) {
        // http://localhost:8081/x-engine?cmd=state
        String url = "http://127.0.0.1:" + instance.getPort() + "/x-engine?cmd=" + cmd;
        return url;
    }
}
